using System;
using System.Collections.Generic;
using System.Text;

namespace TST.SharePoint.Shared
{
    /// <summary>
    /// A custom property can be used by a datasource to store configuration values 
    /// that are specific for that datasource.
    /// </summary>
    [Serializable()]
    public class CustomProperty : IIdentifiable<string>
    {
        private string _value;
        private string _id;

        public CustomProperty()
        {
        }

        public CustomProperty(string Id)
        {
            _id = Id;
        }

        public CustomProperty(string Id, string value)
        {
            _id = Id;
            _value = value;
        }

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }

        #region IIdentifiable<string> Members

        public string Id
        {
            get {return _id; }
            set { _id = value; }
        }

        #endregion
    }
}
